package com.scuthnweb.action.adminadmodule;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

import com.opensymphony.xwork2.ActionSupport;
import com.scuthnweb.domain.transfer.Sy_userList;
import com.scuthnweb.domain.Sy_user;
import com.scuthnweb.service.AdminAdModule;

public class SearchUserAction extends ActionSupport{
	
	private String user_account;
	private String name;
	private Integer authority;
	private String gender;
	private String grade;
	private String major;
	private Integer page;
	private Integer pageSize;
	
	private AdminAdModule adminAdModule;
	
	private List result;
	private Long count;
	
	public String execute(){
		Sy_userList sl = this.adminAdModule.searchUser(user_account, name, authority, gender, grade, major, page, pageSize);
		this.setCount(sl.getCount());
		this.setResult(sl.getsSy_user());
		return SUCCESS;
	}
	
	public AdminAdModule getAdminAdModule() {
		return adminAdModule;
	}

	public void setAdminAdModule(AdminAdModule adminAdModule) {
		this.adminAdModule = adminAdModule;
	}

	public String getUser_account() {
		return user_account;
	}

	public void setUser_account(String user_account) {
		this.user_account = user_account;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getAuthority() {
		return authority;
	}

	public void setAuthority(Integer authority) {
		this.authority = authority;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public String getGrade() {
		return grade;
	}

	public void setGrade(String grade) {
		this.grade = grade;
	}

	public Integer getPage() {
		return page;
	}

	public void setPage(Integer page) {
		this.page = page;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

	public String getMajor() {
		return major;
	}

	public void setMajor(String major) {
		this.major = major;
	}

	public List getResult() {
		return result;
	}

	public void setResult(List result) {
		this.result = result;
	}

	public Long getCount() {
		return count;
	}

	public void setCount(Long count) {
		this.count = count;
	}
}
